﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SBS_Map_Editor
{
    internal sealed class TransformState
    {
        #region Variables
        private ITransform mTransform;

        public Vector3 mTranslation;
        public Quaternion mRotation;
        public Vector3 mScale;
        #endregion

        #region Constructor
        public TransformState(ITransform tform)
        {
            mTransform = tform;

            mTranslation = tform.Translation;
            mRotation = tform.Rotation;
            mScale = tform.Scale;
        }
        #endregion

        #region Helper Functions
        public void Apply()
        {
            mTransform.Translation = mTranslation;
            mTransform.Rotation = mRotation;
            mTransform.Scale = mScale;
        }
        #endregion
    }
}